package commons.base.grpc;

import proto.rpc.Route.Hello;
import proto.rpc.RouteGuideGrpc.RouteGuideImplBase;

public class RouteGuideImpl extends RouteGuideImplBase {

	@Override
	public void hello(proto.rpc.Route.Hello request,
	        io.grpc.stub.StreamObserver<proto.rpc.Route.Hello> responseObserver) {
		System.err.println(request.getHello());
		
		responseObserver.onNext(Hello.newBuilder().setHello("server hello").build());
	    responseObserver.onCompleted();
	}
}
